﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace proLearningEnglish
{
    public partial class frmMain : Form
    {
        public static DataManager objDataManager;
        public static String strPathPicture;
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            strPathPicture = "Pictures\\";
            objDataManager = new DataManager();

            ////***New data***            
            //objDataManager.newData();
            //objDataManager.save("data.rdf");

            objDataManager.loadData("data.rdf");
        }

        private void btnSetup_Click(object sender, EventArgs e)
        {
            frmWordManager frm = new frmWordManager();
            frm.Show();
            this.ShowInTaskbar = true;
            //frmNewWord frmN = new frmNewWord();
            //frmN.Show();
        }

        private void btnComposeTest_Click(object sender, EventArgs e)
        {
            frmComposeTest frm = new frmComposeTest();
            frm.Show();
            this.ShowInTaskbar = true;
        }

        private void btnTesting_Click(object sender, EventArgs e)
        {
            frmSelectTest frm = new frmSelectTest();
            frm.Show();
            this.ShowInTaskbar = true;
        }
    }
}
